home *** CD-ROM | disk | FTP | other *** search
- Date: Fri, 8 Jul 1994 09:50:06 -0400 (EDT)
- From: Timothy Miller <millert@undergrad.csee.usf.edu>
- Subject: RE: Gem Listing (fwd)
- To: gem-list@world.std.com
- In-Reply-To: <9407080836.AA14927@getafix.oasis.icl.co.uk>
- Message-Id: <Pine.3.87.9407080906.A17825-0100000@grad>
- Mime-Version: 1.0
- Precedence: bulk
-
- Goemon:
-
- ]WHAT is so INCREDIBLY DIFFICULT about using objc_find to locate the editable
- ]object under the mouse?? HERE IS SOME EXAMPLE CODE!!!!!!
- ]
- ]do {
- ] /* Do your event thingie here and get mouse coords in mx and my */
- ] object = objc_find(tree, mx, my);
- ] if (tree[object].ob_flags & EDITABLE)
- ] graf_mouse(TEXT_CRSR, 0L);
- ] else
- ] graf_mouse(ARROW, 0L);
- ]} while(!(exitobject));
- ]
- ]Total elapsed time : 0.003 microseconds
- ]
- ]WHAT IS SO DIFFICULT ABOUT THIS?!?!?!?!?!?!?!?!?!?!?!?!?!?!?! THIS CREATES
- ]THE *SAME* AMOUNT OF TIME THAT THE 1-PIXEL RECTANGLE CREATES! WHY MUST YOU
- ]KEEP INSISTING ON THE HARD WAY OUT?? Are you *REALLY* a coder?
-
- Who said it was difficult? We're not talking about difficulty. We were
- talking about system overhead and wasted time.
-
- What's difficult is making a larger-than-1-pixel rectangle so that your
- app doesn't have to be called for every mouse movement, and system time
- doesn't have to be wasted.
-
-
-